'use strict';

const HtmlWebpackPlugin = require('html-webpack-plugin');
// our setup function adds behind-the-scenes bits to the config that all of our
// examples need
const { setup } = require('../../util');

module.exports = [
  setup({
    context: __dirname,
    entry: './app1.js',
    output: {
      filename: 'app1.js',
    },
    plugins: [
      new HtmlWebpackPlugin({
        filename: 'example1.html',
        template: '../../.assets/layout.html',
        title: 'Open Page (Multiple) / Example / Page 1',
      }),
    ],
  }),
  setup({
    context: __dirname,
    entry: './app2.js',
    output: {
      filename: 'app2.js',
    },
    plugins: [
      new HtmlWebpackPlugin({
        filename: 'example2.html',
        template: '../../.assets/layout.html',
        title: 'Open Page (Multiple) / Example / Page 2',
      }),
    ],
  }),
];
